package designpattern.singleton;

import org.junit.Test;

public class HungerSingletonTest {
	@Test
	public void test(){
		HungerSingleton s1 = HungerSingleton.getSingleton();
		HungerSingleton s2 = HungerSingleton.getSingleton();
		System.out.println(s1==s2);
		System.out.println(s1.equals(s2));
		System.out.println(s1);
		System.out.println(s2);
	}
}
